/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.cms.dao;

import com.hlingsoft.cms.entity.FocusMessage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;



@Repository
	public interface FocusMessageDao {



	/**
	 * 添加评论消息
	 * 
	 * @return Integer
	 */
	public long addFocusMessage(FocusMessage focusMessage);


	/**
	 * 关注列表
	 * @param toId
	 * @param offset
	 * @param rows
	 * @return
	 */
    public List<FocusMessage> getFocusMessageByToId(@Param("toId") long toId,@Param("offset") int offset,@Param("rows")int rows);


	/**
	 * 删除关注信息
	 * @param focusMessage
	 * @return
	 */
	public int updateFocusMessage(FocusMessage focusMessage);


	/**
	 * 关注信息
	 * @param myId
	 * @param toId
	 * @return
	 */
	FocusMessage getFocusMessageByIds(@Param("myId")long myId,@Param("toId")long toId);


	public List<FocusMessage> getFocusMessageByAppUserIdWithNone(@Param("appUserId") long appUserId);

}
